package cn.com.yitong.enums;

import com.baomidou.mybatisplus.annotation.IEnum;

/**
 * @author Meng Shen
 * @date 2022/5/6
 **/
public enum SexEnum implements IEnum<Integer> {

    MALE(0, "男"),
    FEMALE(1, "女"),
    UNKNOWN(2, "未知");

    private final int value;
    private final String desc;

    SexEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    @Override
    public String toString() {
        return this.desc;
    }
}
